package com.plian.system.service.im;

import com.alibaba.excel.ExcelWriter;
import com.alibaba.excel.write.metadata.WriteSheet;
import com.alibaba.excel.write.metadata.fill.FillConfig;
import com.plian.system.entity.im.InvestmentDebt;
import com.plian.system.mybatis.base.BaseService;

import java.util.List;

/**
 * 服务类
 *
 * @author
 * @since 2019-09-27
 */
public interface IInvestmentDebtService extends BaseService<InvestmentDebt> {
    /**
     * 国有企业投资项目债务余额及结构情况表（企业）sheet页 数据写入
     * @param investmentDebts
     * @param excelWriter
     * @param writeSheet
     * @param fillConfig
     */
    void write(List<InvestmentDebt> investmentDebts, ExcelWriter excelWriter, WriteSheet writeSheet, FillConfig fillConfig);

    /**
     * 根据主表删除
     * @param ids
     * @return
     */
    boolean deleteByParentId(List<Long> ids);

    /**
     * 根据主表id删除
     * @param baseInvestmentDebtId
     * @return
     */
    boolean deleteByBaseId(Long baseInvestmentDebtId);
}
